package com.controller;

import com.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class JSONController extends AbstractController {

	@RequestMapping({"/goods.html", "/goods.jhtml", "/goods.json", "/goods"})
	@ResponseBody
	public Object test(User user) {
		return user;
	}

}
